package cn.ruituo.adv8.server;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

public class FileServer {
    public static void main(String[] args) throws IOException {
        ServerSocket st=new ServerSocket(3302);
        System.out.println("服务启动成功！");
        while(true){
            final Socket s=st.accept();
            //new FileThread(s).start();
           // new FileThread2(s).start();
            new ObjectThread(s).start();
        }
    }
}
